package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_pms_z_typez database table.
 * 
 */
@Entity
@Table(name="per_pms_z_typez")
@NamedQuery(name="PerPmsZTypez.findAll", query="SELECT p FROM PerPmsZTypez p")
public class PerPmsZTypez implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int typezid;

	private String typezlx;

	//bi-directional many-to-one association to PerPmsZCls
	@OneToMany(mappedBy="perPmsZTypez")
	private List<PerPmsZCls> perPmsZCls;

	public PerPmsZTypez() {
	}

	public int getTypezid() {
		return this.typezid;
	}

	public void setTypezid(int typezid) {
		this.typezid = typezid;
	}

	public String getTypezlx() {
		return this.typezlx;
	}

	public void setTypezlx(String typezlx) {
		this.typezlx = typezlx;
	}

	public List<PerPmsZCls> getPerPmsZCls() {
		return this.perPmsZCls;
	}

	public void setPerPmsZCls(List<PerPmsZCls> perPmsZCls) {
		this.perPmsZCls = perPmsZCls;
	}

	public PerPmsZCls addPerPmsZCl(PerPmsZCls perPmsZCl) {
		getPerPmsZCls().add(perPmsZCl);
		perPmsZCl.setPerPmsZTypez(this);

		return perPmsZCl;
	}

	public PerPmsZCls removePerPmsZCl(PerPmsZCls perPmsZCl) {
		getPerPmsZCls().remove(perPmsZCl);
		perPmsZCl.setPerPmsZTypez(null);

		return perPmsZCl;
	}

}